﻿using System.Web.Mvc;
using Wedn.Net.Controller.Base;
using Wedn.Net.Extensions;
using Wedn.Net.Utility;

namespace Wedn.Net.Admin.Controllers
{
    /// <summary>
    /// 后台仪表盘页面控制器
    /// </summary>
    public class DashboardController : AdminBaseController
    {
        /// <summary>
        /// 仪表盘首页
        /// GET: /Admin/Dashboard/
        /// </summary>
        /// <returns></returns>
        public ActionResult Index()
        {
            //var route = RouteData;
            //return Content("/" + route.DataTokens["area"] + "/Dashboard/");
            //return Content(Url.Action("Action"));

            //var result = ViewEngines.Engines.FindView(ControllerContext, "Index", null);
            //foreach (var item in result.SearchedLocations)
            //{
            //    Response.Write(item + "<br/>");
            //}v
            //BllInstance.OptionManager.UpdateValue("site_culture", "");
            ViewBag.Title = CultureHelper.GetCultureString("Dashboard");
            //rous
            return View();
        }

        public ActionResult Action()
        {
            LogHelper.WriteErrorLog("WriteErrorLog");
            LogHelper.WriteInfoLog("WriteInfoLog");
            return View();
        }
    }
}
